import java.sql.SQLOutput;
import java.util.Scanner;

/**
 * @PROJECT_NAME: java_2022_11_26
 * @DESCRIPTION:
 * @USER: Administrator
 * @DATE: 2022/11/26 8:46
 */
public class test
{
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static void swap(int num1, int num2)
    {
        int tmp = num1;
        num1 = num2;
        num2 = tmp;
    }

    public static String myToString(int[] arr)
    {
        String result = new String();
        result += '[';
        for (int i = 0; i < arr.length; i++)
        {
            int tmp = arr[i];
            while(tmp > 0)
            {
                result += tmp % 10;
                tmp /= 10;
            }
            if(i != arr.length - 1)
                result += ", ";
        }
        result += ']';
        return result;
    }


    public static void main(String[] args) {
        int[] a = {1, 2, 3};
        System.out.println(myToString(a));

//        Scanner scanner = new Scanner(System.in);
//        int a = scanner.nextInt();
//        int b = scanner.nextInt();
//        swap(a, b);
//        System.out.println(a);
//        System.out.println(b);
    }

}
